/******************************************************************
******** 
 * ++ 
 * Author:    Team 1
 * Module Name  :  Player.cpp
 * 
 * Description  : Source file for class Player
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
 *                
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
 * 
 * Mod. History :  18.06.13 - Nguyen Khac Trung
 *                            File first created 
 *                            MP PROJECT 
 *							  The class manage player and current side turn
 * -- 
 
*******************************************************************
*****/

//Include files
#include "stdafx.h"
#include "Player.h"

/**********************************************************
********
*++
* Method name : Player::Player ()
* Decription  : This method used to
* 
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
*
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
* Parameter : no
* Global available : no
* Return value : no
*               
*--
***********************************************************
********/
Player::Player()
{
	m_bIsRed = true;
}

/**********************************************************
********
*++
* Method name : Player::~Player ()
* Decription  : This method used to
* 
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
*
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
* Parameter : no
* Global available : no
* Return value : no
*               
*--
***********************************************************
********/
Player::~Player()
{

}

/**********************************************************
********
*++
* Method name : Player::ChangePlayer ()
* Decription  : This method used to
* 
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
*
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
* Parameter : no
* Global available : no
* Return value : no
*               
*--
***********************************************************
********/
void Player::ChangePlayer()
{
	if(m_bIsRed == true)
	{
		m_bIsRed = false;
	}
	else
	{
		m_bIsRed = true;
	}
}

bool Player::GetCurrentTurn()
{
	return m_bIsRed;
}